import { createBottomTabNavigator } from '@react-navigation/bottom-tabs'
import Mine from '../mine/index'
import Exercise from '../exercise/index'

const Tabs = createBottomTabNavigator()

export default function Home() {
  return (
    <Tabs.Navigator>
      <Tabs.Screen
        name="Exercise"
        component={Exercise}
        options={{ title: '做题', header: () => null }}
      />
      <Tabs.Screen name="Mine" component={Mine} options={{ title: '我的', header: () => null }} />
    </Tabs.Navigator>
  )
}
